﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace web6
{
    public partial class _2016020719_3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Write("系统当前时间是：" + DateTime.Now.Hour + "点" + DateTime.Now.Minute + "分<br>");
            if (DateTime.Now.Hour < 9 || DateTime.Now.Hour > 17)
            {
                Response.Write("本网站此时时间停止开放<br>");
                Response.Write("本网站开放时间为：上午8点到下午17点");
                Response.End();
            }
            else
            {
                Response.Redirect("http://www.gdnfu.com/index.html");
            }
        }
    }
}